import 'package:flutter/material.dart';
import 'package:fluttermodule/customerInfo/customer_info_model.dart';
import 'package:fluttermodule/service/service_method.dart';

class CustomerInfoProvide with ChangeNotifier {
  CustomInfo customerInfo;

  getCustomerInfo(String clientId) async {
    final formData = {
      'clientId': clientId,
    };
    await request('getCustomerInfo', formData: formData).then((val) {
      // var responseData= json.decode(val['productDetail'].toString());
      customerInfo = CustomInfo.fromJson(val);
      notifyListeners();
    });
  }
}
